package com.itheima.reggie.service;

import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrdersService {
    //保存订单
    Boolean add(Orders orders);
    //订单分页查询,查看最近订单
    Page<Orders> findByPage(Long userId, Integer page, Integer pageSize);
    //再来一单
    Orders again(Long id);
}
